﻿@model IEnumerable<CongressVote.Models.Question>
@{
    ViewBag.Title = "ViewQuestionsForSenator";
    
}

<h2>ViewQuestionsForSenator</h2>
<h2>decisions</h2>

@foreach (var item in Model) 
{
    
    <fieldset>
        <legend>@Html.LabelFor(m=>item.id)</legend>
        <div>    
           
            
           <p>@Html.DisplayFor(modelItem => item.Text)</p> 
            @using (Html.BeginForm())  {
                    
            <p>
                
          <input type="text" value="@item.id" name="RQID" hidden="hidden" />         
          <input type="radio" name="radioValue" id="radioYes" value="1" checked="checked"  /> yes             
          <input type="radio" name="radioValue" id="radioNo" value="2" />  no
               
       
                <input type="submit" value="save"  />
                </p>
            }            
        </div>
    
    </fieldset>
         


}
